<?php

//获取快递公司列表
Route::get('get-express-list', ['as' => 'get_express_list', 'uses' => 'PublicController@get_express_list']);
//物流追踪
Route::get('logistics-tracking', ['as' => 'logistics_tracking', 'uses' => 'PublicController@logistics_tracking']);
//生成二维码
Route::get('create-qr-code', ['as' => 'create_qr_code', 'uses' => 'PublicController@create_qr_code']);

/**需要验证登录token的路由 start  **/
Route::group(['middleware' => ['web_auth:web_api']], function () {
    //门店订单统计
    Route::post('order-statistics', ['as' => 'order_statistics', 'uses' => 'GoodsOrderController@order_statistics']);

    /***********************服务商品模块**********************/
    //服务商品分类列表
    Route::get('get-repair-type', ['as' => 'get_repair_type', 'uses' => 'GoodsController@get_repair_type']);
    //服务商品列表
    Route::get('get-repair-list', ['as' => 'get_repair_list', 'uses' => 'GoodsController@get_repair_list']);
    //添加服务商品
    Route::post('add-repair-goods', ['as' => 'add_repair_goods', 'uses' => 'GoodsController@add_repair_goods']);
    //编辑服务商品
    Route::post('edit-repair-goods', ['as' => 'edit_repair_goods', 'uses' => 'GoodsController@edit_repair_goods']);
    //获取服务商品详情
    Route::get('get-repair-goods-info', ['as' => 'get_repair_goods_info', 'uses' => 'GoodsController@get_repair_goods_info']);
    //批量上下架
    Route::post('change-repair-status', ['as' => 'change_repair_status', 'uses' => 'GoodsController@change_repair_status']);
    //删除服务商品
    Route::post('del-repair-goods', ['as' => 'del_repair_goods', 'uses' => 'GoodsController@del_repair_goods']);

    /***********************服务商品订单模块**********************/
    //获取该门店的订单列表列表
    Route::get('get-repair-order-list', ['as' => 'get_repair_order_list', 'uses' => 'RepairOrderController@get_repair_order_list']);
    //获取该门店的订单详情
    Route::get('get-repair-order-info', ['as' => 'get_repair_order_info', 'uses' => 'RepairOrderController@get_repair_order_info']);
    //服务订单处理
    Route::post('chang-repair-status', ['as' => 'chang_repair_status', 'uses' => 'RepairOrderController@chang_repair_status']);
    //服务订单退款处理
    Route::post('refund-repair-order', ['as' => 'refund_repair_order', 'uses' => 'RepairOrderController@refund_repair_order']);
    //商户端扫码确认可完成订单
    Route::get('scanning-code', ['as' => 'scanning_code', 'uses' => 'RepairOrderController@scanning_code']);

    /****************************商城模块************************************/
    //商品分类列表
    Route::get('get-goods-cate', ['as' => 'get_goods_cate', 'uses' => 'GoodsController@get_goods_cate']);
    //获取商品规格分类列表
    Route::get('get-specs-cate-list', ['as' => 'get_specs_cate_list', 'uses' => 'GoodsController@get_specs_cate_list']);
    //分类下的商品列表
    Route::get('get-goods-list', ['as' => 'get_goods_list', 'uses' => 'GoodsController@get_goods_list']);
    //该门店的所有商品列表
    Route::get('get-goods-all', ['as' => 'get_goods_all', 'uses' => 'GoodsController@get_goods_all']);
    //指定商品的详情
    Route::get('get-goods-info', ['as' => 'get_goods_info', 'uses' => 'GoodsController@get_goods_info']);
    //添加商品
    Route::post('add-goods', ['as' => 'add_goods', 'uses' => 'GoodsController@add_goods']);
    //编辑商品
    Route::post('edit-goods', ['as' => 'edit_goods', 'uses' => 'GoodsController@edit_goods']);
    //修改商品状态
    Route::post('change-goods-status', ['as' => 'change_goods_status', 'uses' => 'GoodsController@change_goods_status']);
    //删除商品
    Route::post('del-goods', ['as' => 'del_goods', 'uses' => 'GoodsController@del_goods']);
    //删除商品规格属性
    Route::get('del-goods-product', ['as' => 'del_goods_product', 'uses' => 'GoodsController@del_goods_product']);

    /***********************商城商品订单模块**********************/
    //积分商品订单列表
    Route::get('get-mall-order-list', ['as' => 'get_mall_order_list', 'uses' => 'GoodsOrderController@get_mall_order_list']);
    //积分商品订单详情
    Route::get('get-mall-order-info', ['as' => 'get_mall_order_info', 'uses' => 'GoodsOrderController@get_mall_order_info']);
    //积分商品订单确认发货
    Route::get('send-mall-goods', ['as' => 'send_mall_goods', 'uses' => 'GoodsOrderController@send_mall_goods']);


    //普通商品订单列表
    Route::get('get-store-order-list', ['as' => 'get_store_order_list', 'uses' => 'GoodsOrderController@get_store_order_list']);
    //普通商品订单详情
    Route::get('get-store-order-info', ['as' => 'get_store_order_info', 'uses' => 'GoodsOrderController@get_store_order_info']);
    //普通商品订单操作
    Route::post('store-order-operation', ['as' => 'store_order_operation', 'uses' => 'GoodsOrderController@store_order_operation']);

    //普通商品订单售后列表
    Route::get('store-order-sale-list', ['as' => 'store_order_sale_list', 'uses' => 'GoodsOrderController@store_order_sale_list']);
    //普通商品订单售后详情
    Route::get('store-order-sale-info', ['as' => 'store_order_sale_info', 'uses' => 'GoodsOrderController@store_order_sale_info']);
    //普通商品售后操作
    Route::post('store-order-sale-handle', ['as' => 'store_order_sale_handle', 'uses' => 'GoodsOrderController@store_order_sale_handle']);




});











